package com.zr.service.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.zr.dao.ProxyDao;
import com.zr.service.ProxyService;

import net.sf.json.JSONObject;
@Service("proxysss")
public class ProxyServiceImpl implements ProxyService{
	@Resource
	private ProxyDao proxydao;
	@Override
	public JSONObject findAllProxy(int page, int rows) {
		JSONObject j = new JSONObject();
		j.put("total", proxydao.countAllproxy());
		j.put("rows", proxydao.findAllproxy(page, rows));
		return j;
	}

}
